package com.zhang.designmode.wangzheng_design_mode.T44_Factory.simpleFactory;

import org.slf4j.ILoggerFactory;
import org.slf4j.LoggerFactory;

import java.util.Calendar;

/**
 * @Author: zxz
 * @DateTime: 2022/3/1 11:28
 * @Description: TODO
 */
public class Client {
    public static void main(String[] args) {
        CarFactory carFactory = new CarFactory();
        ICar car = carFactory.createCar(BusCar.class);
        car.creatEngine();
        car.creatWheel();
    }
    void Demo1(){
        // 使用简单工厂模式的源码
        Calendar instance = Calendar.getInstance();

        ILoggerFactory iLoggerFactory = LoggerFactory.getILoggerFactory();

    }
}
